package com.lvmama.vst;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableDiscoveryClient
@SpringBootApplication  
public class Tutorial01Application { 

	public static void main(String[] args) {
		SpringApplication.run(Tutorial01Application.class, args);
	}
	
	@RequestMapping("welcome")
	public ResponseEntity<String> welcome() {
		return new  ResponseEntity<>("welcome to this class", HttpStatus.OK);
	}
}
